package com.hnhs.mapper;


import com.hnhs.model.Category;
import com.hnhs.model.CategoryQuery;
import com.hnhs.pageann.PageX;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {

    public List<Category> findAll();
    //获取数据列表
    @PageX
    public List<Category> select(CategoryQuery query);

    int insert(Category category);
    int update(Category category);
    //删除 采用软删除 就是更改status
    int updateStatus(@Param("id") Integer id, @Param("status")Integer status);
}
